<?php


namespace App\Api\Repositories;


use App\Models\Competition;
use App\Models\Group;
use App\Models\Introduction;
use App\Models\Leaguetable;
use App\Models\Matchs;
use App\Models\Player;
use App\Models\Suspension;
use Carbon\Carbon;

// Added Suspension model
use App\Models\Team;

class ApiRepository extends BaseRepository {
    /**
     * Corresponding method for IndexService::index()
     */
    public function index() {
        $query = Matchs::where('competitionId', 15)->Where(function ($query) {
            $query->where(function ($query) {
                $query->where('homeTeamId', 300)->where('awayTeamId', 341);
            })->orWhere(function ($query) {
                $query->where('homeTeamId', 341)->where('awayTeamId', 300);
            });
        });//->toSql();
        // Removed problematic str_replace_array call
        // print_r($query->toSql()); // Optional: print the raw SQL without bindings
        // print_r($query->getBindings()); // Optional: print the bindings
        return null;
    }
}
